package com.pactera.madp.cp.controller.sidebar.marketing;

import com.pactera.madp.common.core.util.R;
import com.pactera.madp.cp.api.vo.marketing.MarketingClassificationVO;
import com.pactera.madp.cp.service.MarketingClassificationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * (McMarketingClassification)表控制层
 *
 * @author yushen.qi
 * @since 2021-05-24 15:30:55
 */
@RestController
@RequestMapping("/marketingclassificationwechat")
@Api(value = "marketingClassification", tags = "营销素材-分类管理侧边栏")
public class MarketingClassificationSidebarController {

    @Resource
    private MarketingClassificationService marketingClassificationService;

    /**
     * 分类列表
     *
     * @return
     */
    @GetMapping("/index")
    @ApiOperation(value = "分类列表")
    public R<List<MarketingClassificationVO>> list(){
        return R.ok(marketingClassificationService.listAllWechat());
    }

}
